#!/usr/bin/python
# -*- coding:utf-8 -*-
# @author  : micah
# @time    :  
# @function: 
# @version :


def my_func():
    yield 1
    yield 2
    yield 3
    yield 4


# 创建生成器对象
obj = my_func()
print(next(obj))
print(next(obj))
print(next(obj))
print(next(obj))
# print(next(obj))
